<?php
include_once "BaseM.php";
 
class LoginCheckM extends BaseM{
	
	
	public function __construct() {
		parent::__construct ();
	}
	
	
	/**
	 * 取得管理員資料
	 */
	public function checkUser($account, $liveKey) {
		$sql = " select id from user where account = '$account' and live_key <= $liveKey ";
		return $this->querySQL($sql, true);
	}
	
	/**
	 * 取得會員資料
	 */
	public function checkMember($account, $liveKey) {
		$sql = " select id from member where account = '$account' and live_key <= $liveKey ";
		return $this->querySQL($sql, true);
	}
	

}

?>